Skip to content

test(ai): drop three tests that duplicate surviving assertions - #801

Merged
HugoRCD merged 1 commit into
mainfrom
test/ai-drop-duplicate-tool-tests
Oct 9, 2026
Merged

HugoRCD merged 1 commit into
mainfrom
test/ai-drop-duplicate-tool-tests

Conversation

@evlogai

@evlogai evlogai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Test batch from the 2026-10-09 simplification sweep (revision a34dffd), packages/evlog/test/ai/ai.test.ts, findings tests-1, tests-2 and tests-3. Test-only change, no source change.

Removed:

  • captures tool calls from stream chunks
  • shows steps only when greater than 1
  • concatenates tool calls across multiple calls

Each behavior they assert is still asserted by another test in the same file, so the removal drops no coverage. Test count goes from 103 to 100.

Evidence

Mutation checks, run against src/ai/index.ts one at a time and reverted after each. Each mutation makes at least one surviving test fail, so the paths stay pinned:

Mutation Surviving tests that fail
state.steps > 1 changed to > 0 (steps gate) omits stepsUsage for a single call, includes stepsUsage for multiple calls, includes stepsUsage with stream calls, tracks per-step models in stepsUsage (4 failed)
stream tool-input-start branch disabled captures tool call inputs from stream deltas when enabled, does not capture stream tool inputs when toolInputs is false, truncates stream tool inputs with maxLength, includes stepsUsage with stream calls (4 failed)
tool-call accumulation overwritten (allToolCalls = [item.toolName]) captures tool calls from content, does not grow array fields quadratically across multi-step runs, produces a wide event with linear array growth across a multi-step run (3 failed)

Checks, run in /workspace/repo at 298d7ec:

No changeset: test-only, no consumer-visible change.

ELI5

Three of the AI logger's tests checked things that other tests already check. This removes those three. To confirm nothing important is lost, each of the three kinds of breakage was introduced on purpose, and the remaining tests caught every one.

Removes 'captures tool calls from stream chunks', 'shows steps only when greater than 1' and 'concatenates tool calls across multiple calls'. Each asserted behavior that is still covered by another test in the same file. Mutation checks against src/ai/index.ts (steps gate, stream tool-input-start, tool-call accumulation) each fail on at least one surviving assertion, so coverage of those paths is unchanged. Test count goes from 103 to 100; no source change.
@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
evi Ready Ready Preview Oct 9, 2026 6:39pm UTC
evlog-telemetry Ready Ready Preview Oct 9, 2026 6:39pm UTC
3 Skipped Deployments
Project Deployment Actions Updated
evlog-docs Skipped Skipped v0 Oct 9, 2026 6:39pm UTC
evlog-render-lab Skipped Skipped Oct 9, 2026 6:39pm UTC
just-use-evlog Skipped Skipped Oct 9, 2026 6:39pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – evlog-docs October 9, 2026 18:37 Inactive
@coderabbitai

coderabbitai Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 941598c5-e0fb-4cf4-8ac8-5895b709afcf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions
github-actions Bot requested a review from HugoRCD October 9, 2026 18:37
@github-actions github-actions Bot added the test label Oct 9, 2026
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions! 🙏

@pkg-pr-new

pkg-pr-new Bot commented Oct 9, 2026

Copy link
Copy Markdown
@evlog/cli

npm i https://pkg.pr.new/@evlog/cli@801

evlog

npm i https://pkg.pr.new/evlog@801

@evlog/nuxthub

npm i https://pkg.pr.new/@evlog/nuxthub@801

@evlog/signals

npm i https://pkg.pr.new/@evlog/signals@801

@evlog/telemetry

npm i https://pkg.pr.new/@evlog/telemetry@801

commit: 298d7ec

@HugoRCD
HugoRCD merged commit d1523f4 into main Oct 9, 2026
20 checks passed
@HugoRCD
HugoRCD deleted the test/ai-drop-duplicate-tool-tests branch October 9, 2026 20:16

This branch was successfully deployed

2 active and 3 inactive deployments
Preview – evlog-telemetry — 298d7ecb Deployed Oct 9, 2026 by vercel[bot]
Preview – evi — 298d7ecb Deployed Oct 9, 2026 by vercel[bot]
Preview – evlog-docs — 298d7ecb Deployed Oct 9, 2026 by vercel[bot]
Preview – just-use-evlog — 298d7ecb Deployed Oct 9, 2026 by vercel[bot]
Preview – evlog-render-lab — 298d7ecb Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant